from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^index/$', views.index),
    # url传递参数
    url(r'^index01/(?P<my_id>[0-9]+)/$', views.test_id, name='name1'),  # my_id和test_id的第二参数一致
    url(r'^post/$', views.my_post, name='my_post'),
]
